package service;

import dao.FileDao;
import model.FileModel;
import model.User;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: TM
 * Date: 11/18/12
 * Time: 11:11 AM
 * To change this template use FileModel | Settings | FileModel Templates.
 */
public class FileServiceImpl implements FileService{
    private FileDao fileDao;
    public int uploadFile(User user, FileModel fileModel) {
        return fileDao.uploadFile(user, fileModel);
    }

    public List<FileModel> getFileList(User user) {
        return fileDao.getFileList(user);
    }

    public FileModel getFilePathById(final String fileId){
        return fileDao.getFilePathById(fileId);
    }

    public FileDao getFileDao() {
        return fileDao;
    }

    public void setFileDao(FileDao fileDao) {
        this.fileDao = fileDao;
    }
}
